package com.tedu.egmybatis1.mapper;

import com.tedu.egmybatis1.pojo.Product;
import jakarta.annotation.PostConstruct;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ProductMapper {

    int insertProduct(Product product);

    int updateProductById(Product product);

    int deleteProductById(Product product);

    Product selectProductById(Integer id);

    //查询全部记录
    List<Product> selectProductAll();
}
